Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > VolumeDamage

Volume Damage

I will show you how to hurt the player via a trigger (also called a hurt trigger, not to be confused with a trigger_hurt, but I don't know about those... dcoshea?: I believe they are supposed to do something similar to what you describe here, but they don't work properly in Allied Assault despite being available, only in Spearhead.

This is a very simple process.

First create a trigger_multiple where you want the player to be hurt if he triggers it. (ie. at the bottom of a lake, see below, or around a fire)

Next it needs the following key/values:

KeyValueExplanation
targetnamemy_hurt_trigger 
setthreadmy_hurt_trigger 
wait2number of seconds between hurts

Now you're going to need to add this into your sript (below levelwaittil spawn):


 //hurt script by blue60007
 my_hurt_trigger:
   $my_hurt_trigger volumedamage 100 //hurts the player
 end

This script would take about 7 seconds to kill you from full health. Anyone know the formula for calculating volumedamge into health points?

A good lake trigger

Say you have a trigger set up at the bottom of a lake to hurt the player. Add a key/value of:

KeyValue
delay60

and you have 60 seconds worth of air to use, then you start to drown. ( *twisted* )

That's pretty simple to do!

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on January 26, 2005, at 07:23 PM